package com.beyond.trace.dy.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.Size;

/**
 * 养殖户管理对象 t_trace_dy_farmers
 * 
 * @author Mr.Yao
 * @date 2022-04-08
 */
@TableName("t_trace_dy_farmers")
public class TraceDyFarmers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "farmers_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long farmersId;
    /** 养殖户姓名 */
    @Excel(name = "养殖户姓名")
    @ApiModelProperty(value = "养殖户姓名")
    private String farmersName;
    /** 养殖户地址 */
    @Excel(name = "养殖户地址")
    @ApiModelProperty(value = "养殖户地址")
    private String farmersAddress;
    /** 养殖户联系方式 */
    @Excel(name = "养殖户联系方式")
    @ApiModelProperty(value = "养殖户联系方式")
    private String farmersPhone;
    /** 养殖品种 */
    @Excel(name = "养殖品种")
    @ApiModelProperty(value = "养殖品种")
    private String farmersBreed;
    /** 养殖数量 */
    @Excel(name = "养殖数量")
    @ApiModelProperty(value = "养殖数量")
    @Size(min = 0,max = 15,message = "养殖数量不能超过15个字符")
    private String farmersCount;
    /** 检测报告 */
    @Excel(name = "检测报告")
    @ApiModelProperty(value = "检测报告")
    private String farmersCheckReport;
    /** 是否删除，1，是 0，否 */
    @Excel(name = "是否删除，1，是 0，否")
    @ApiModelProperty(value = "是否删除，1，是 0，否")
    private Long deleteFlag;
    /** 删除人 */
    @Excel(name = "删除人")
    @ApiModelProperty(value = "删除人")
    private String deleteBy;
    /** 删除日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "删除日期")
    private Date deleteTime;
    public void setFarmersId(Long farmersId) 
    {
        this.farmersId = farmersId;
    }

    public Long getFarmersId() 
    {
        return farmersId;
    }
    public void setFarmersName(String farmersName) 
    {
        this.farmersName = farmersName;
    }

    public String getFarmersName() 
    {
        return farmersName;
    }
    public void setFarmersAddress(String farmersAddress) 
    {
        this.farmersAddress = farmersAddress;
    }

    public String getFarmersAddress() 
    {
        return farmersAddress;
    }
    public void setFarmersPhone(String farmersPhone) 
    {
        this.farmersPhone = farmersPhone;
    }

    public String getFarmersPhone() 
    {
        return farmersPhone;
    }
    public void setFarmersBreed(String farmersBreed) 
    {
        this.farmersBreed = farmersBreed;
    }

    public String getFarmersBreed() 
    {
        return farmersBreed;
    }
    public void setFarmersCount(String farmersCount)
    {
        this.farmersCount = farmersCount;
    }

    public String getFarmersCount()
    {
        return farmersCount;
    }
    public void setFarmersCheckReport(String farmersCheckReport) 
    {
        this.farmersCheckReport = farmersCheckReport;
    }

    public String getFarmersCheckReport() 
    {
        return farmersCheckReport;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("farmersId", getFarmersId())
            .append("farmersName", getFarmersName())
            .append("farmersAddress", getFarmersAddress())
            .append("farmersPhone", getFarmersPhone())
            .append("farmersBreed", getFarmersBreed())
            .append("farmersCount", getFarmersCount())
            .append("farmersCheckReport", getFarmersCheckReport())
            .append("deleteFlag", getDeleteFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("remark", getRemark())
            .toString();
    }
}
